import Taro from '@tarojs/taro-h5';
import Nerv from "nervjs";
function tabBarClick(value) {
  switch (value) {
    case 0:
      Taro.redirectTo({
        url: `/pages/index/index`
      });
      break;
    case 1:
      Taro.redirectTo({
        url: `/pages/find/find`
      });
      break;
    case 2:
      break;
    case 3:
      Taro.redirectTo({
        url: `/pages/message/message`
      });
      break;
    case 4:
      Taro.redirectTo({
        url: `/pages/my/my`
      });
      break;
    default:
      break;
  }
}
export const CommonFunction = {
  tabBarClick: value => tabBarClick(value)
};